package cn.uexpo.lhz.common.oldBase;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface BaseMapper<T, T1> {

	long countByExample(T1 example);

	int deleteByExample(T1 example);

	int deleteByPrimaryKey(Integer id);

	int insert(T record);

	int insertSelective(T record);

	List<T> selectByExample(T1 example);

	T selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") T record, @Param("example") T1 example);

	int updateByExample(@Param("record") T record, @Param("example") T1 example);

	int updateByPrimaryKeySelective(T record);

	int updateByPrimaryKey(T record);

}
